package com.ikas.ai.server.module.equipment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ikas.ai.server.module.equipment.model.po.Equipment;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 设备资产管理
 *
 * @author tang.xuandong
 * @version 1.0.0
 * @date 2023/2/1 10:41
 */
@Mapper
public interface EquipmentDAO extends BaseMapper<Equipment> {

    List<String> getAllEquipmentCode();

    List<Map<String, Object>> getAllEquipmentIdAndCode();

    @Delete("TRUNCATE TABLE t_base_equipment")
    void clearTable();

}
